//
//  MoBanThirTennFourCell.m
//  MoBan
//
//  Created by apple on 16/7/28.
//  Copyright © 2016年 apple. All rights reserved.
//

#import "MoBanThirTennFourCell.h"
@interface MoBanThirTennFourCell()
@property(nonatomic,strong)UILabel *namelable;
@property(nonatomic,strong)UILabel *timelabe;
@property(nonatomic,strong)UILabel *messagelable;
@end
@implementation MoBanThirTennFourCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self= [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self addUI];
    }
    return self;
}
-(void)addUI
{
    self.namelable = [[UILabel alloc]init];
    self.namelable.text = @"顾客满意度";
    [self.contentView addSubview:self.namelable];
    
    self.timelabe = [[UILabel alloc]init];
    self.timelabe.text = @"2017";
    [self.contentView addSubview:self.timelabe];
    
    self.messagelable = [[UILabel alloc]init];
    self.messagelable.text = @"看看这个东西到底怎样";
    [self.contentView addSubview:self.messagelable];
}
-(void)layoutSubviews
{
    [super layoutSubviews];
    self.namelable.frame = CGRectMake(10*Kscr, 5*Kscr, 100*Kscr, 20*Kscr);
    self.timelabe.frame = CGRectMake(self.namelable.right, 5*Kscr, KscrW-self.namelable.right, 20*Kscr);
    self.messagelable.frame = CGRectMake(10*Kscr, self.timelabe.bottom+5*Kscr, KscrW-10*Kscr, 20*Kscr);
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
